<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/8/6
 * Time: 13:29
 */

namespace App\Http\Middleware;

use Closure;

class CheckHomeLogin extends BaseController{


    public function handle($request, Closure $next)
    {
        if (!(request('aid') && request('sid') && request('mid'))) {
            abort(503, '未授权访问！');
        }
        return $next($request);
    }
}

